package yxy.game.pm2.active.module.guanyurecruit;

import yxy.apple.util.PubSub.MethodSubscriber;
import yxy.apple.util.PubSub.SubscriptionMethod;
import yxy.game.pm2.bean.pubsub.ConquestPublisher;
import yxy.game.pm2.bean.pubsub.ConquestPublisher.ConquestSubscription;

public class ActiveSubscriber_关羽招募 extends MethodSubscriber {

	static private ActiveSubscriber_关羽招募 instance;

	public static ActiveSubscriber_关羽招募 getInstance() {
		if (instance == null) {
			instance = new ActiveSubscriber_关羽招募();
			instance.init();
		}
		return instance;
	}

	private void init() {
		ConquestPublisher.getInstance().subscribe(this);
	}
	
	private ActiveSubscriber_关羽招募() {
	}

	@SubscriptionMethod(Type = ConquestSubscription.class)
	public void receive(ConquestSubscription subscription) {
		String playercode = subscription.getPlayerCode();
		ActiveModule_关羽招募.get(playercode,false);
	}
	
}
